#ifndef _DEFINE_H_
#define _DEFINE_H_

#include "mlog.h"

//global define
#define PORT       1234
#define BACKLOG    10
#define THREADNUM  10
#define LOGDIR   "./log"

#define PCHECK( func, funcname ) {  \
	if((func) == -1 )               \
	{                               \
		perror(funcname);               \
		return -1;                      \
	}                               \
}

typedef struct role{
	int sid;
	char *name;
}ROLE,* PROLE;

#endif